import { Component } from '@angular/core';
import { Router } from '@angular/router';
@Component({
  selector: 'app-play',
  templateUrl: './play.component.html',
  styleUrls: ['./play.component.scss']
})
export class PlayComponent {
  constructor(private router: Router){}
  goBack():void{
    history.go(-1)
  }
      //  play(audio:HTMLElement|null,duration:any){
      //   audio = document.getElementById('audio')
      //   if(audio){
      //     audio.oncanplay = function () {
      //       duration = document.getElementsByClassName('.duration')
      //       duration.html(times(audio.duration))
      //     }
      //   }
      // }
      // times(num:Number){
      //   var m = parseInt(num / 60);
      //   var s = parseInt(num % 60);
      //   m = m > 9 ? m : '0' + m;
      //   s = s > 9 ? s : '0' + s;

      //   return m + ':' + s;
      // }
}
